package com.xinggq.user.service.dto.role;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 角色更新请求DTO
 *
 * @author system
 * @since 2025-01-10
 */
@Data
@Accessors(chain = true)
@Schema(description = "角色更新请求DTO")
public class RoleUpdateRequest {

    @Schema(description = "角色ID", required = true)
    @NotNull(message = "角色ID不能为空")
    private Long id;

    @Schema(description = "角色名称", required = true)
    @NotBlank(message = "角色名称不能为空")
    @Size(max = 50, message = "角色名称长度不能超过50个字符")
    private String roleName;

    @Schema(description = "角色编码", required = true)
    @NotBlank(message = "角色编码不能为空")
    @Size(max = 50, message = "角色编码长度不能超过50个字符")
    private String roleCode;

    @Schema(description = "角色描述")
    @Size(max = 200, message = "角色描述长度不能超过200个字符")
    private String description;

    @Schema(description = "是否系统角色：0-否，1-是")
    private Integer isSystem;

    @Schema(description = "排序")
    private Integer sortOrder;

    @Schema(description = "更新人ID")
    private Long updatedBy;
}